Repository navigation
[CAS] Add llvm-cas tools to inspect on-disk LLVMCAS - #166481
cachemeifyoucan merged 1 commit into
Conversation
Created using spr 1.3.7
|
|
||
| class F<string name> : Flag<["--", "-"], name>; | ||
|
|
||
| def grp_action : OptionGroup<"Actions">, HelpText<"llvm-cas actions">; |
There was a problem hiding this comment.
Have you considered using subcommands for actions? The subcommand support was introduced in #155026.
There was a problem hiding this comment.
I am aware. But we ship this tool already. I would like to prevent breaking current command-line interface if possible.
There was a problem hiding this comment.
Is it possible to migrate them over the course of a release or two?
There was a problem hiding this comment.
Maybe. I would like to do it incrementally since we need to teach build system about the new command before we can break the old one.
There was a problem hiding this comment.
We should be able to support both syntaxes to avoid breaking existing uses and mark the flag-based versions as deprecated so new users are encouraged to use the subcommand syntax. I'm fine doing it in a follow up change if you prefer.
There was a problem hiding this comment.
@petrhosek I think subcommand is not usable with positional arguments. That is a deal breaker for now to use subcommand parsing.
It would also be nice if a flag can be alias to a subcommand but that is not strictly needed.
There was a problem hiding this comment.
@cachemeifyoucan -- I responded about positional argument handling in the bug. PTAL.
|
Ping. Since sub-command parsing needs a bit polish. I think I will update to that in the future. |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/23754 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/21935 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/15355 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/39/builds/8594 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/19031 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/201/builds/7000 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/13353 Here is the relevant piece of the build log for the reference |
If I remember correctly, the I think ultimately, as |
Add a command-line tool
llvm-casto inspect the OnDisk CAS fordebugging purpose. It can be used to lookup/update ObjectStore or
put/get cache entries from ActionCache, together with other debugging
capabilities.